<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class HttpRequest extends CHttpRequest {

    public $noCsrfValidationRoutes = array();

    protected function normalizeRequest() {
        parent::normalizeRequest();
        $route = Yii::app()->getUrlManager()->parseUrl($this);
        if ($this->enableCsrfValidation && false !== array_search($route, $this->noCsrfValidationRoutes))
            Yii::app()->detachEventHandler('onBeginRequest', array($this, 'validateCsrfToken'));
    }

}

?>
